home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11475 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  944 b 

  1. Path: solon.com!not-for-mail
  2. From: lloyd@upsilon.cs.fsu.edu (Justin C Lloyd)
  3. Newsgroups: comp.lang.c.moderated,comp.lang.c
  4. Subject: ada-like naming scheme?
  5. Date: 24 Mar 1996 11:41:33 -0600
  6. Organization: FSU Computer Science Department
  7. Sender: clc@solutions.solon.com
  8. Approved: clc@solutions.solon.com
  9. Message-ID: <4j41gd$nij@solutions.solon.com>
  10. NNTP-Posting-Host: solutions.solon.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. Does anyone know how to do write a .c file so that you have to include the
  14. name of c file in any function calls, similar to ada?
  15.  
  16. In ada, for instance:
  17.  
  18.    ada.text_io.get(x);
  19.  
  20. means there is a collection of procedures named ada (a package), and in that
  21. one named text_io, and in the text_io collection, one called get.
  22.  
  23. Maybe a way to do this by putting everything in a struct? For instance...
  24.  
  25.    float_sort.quicksort(float_array);
  26.    integer_sort.quicksort(int_array);
  27.    integer_sort.selection_sort(int_array);
  28.  
  29. --JcL
  30.